package utils

import "fmt"

// ArrInt64ToStr 将 [1,2,3] 转换为字符串: "1,2,3"
func ArrInt64ToStr(in []int64) (str string) {
	if len(in) == 0 {
		return
	}
	for _, item := range in {
		str += fmt.Sprintf("%v,", item)
	}
	return str[:len(str)-1]
}

// ArrStringToStr 将 ["a","b","c"] 转换为字符串 "a,b,c"
func ArrStringToStr(in []string) (str string) {
	if len(in) == 0 {
		return
	}
	for _, item := range in {
		str += fmt.Sprintf("%v,", item)
	}
	return str[:len(str)-1]
}
